<div class="institute">
  <!--搜索框-->
  <div class="search-inp clearfix">
    <input type="text" placeholder="请输入机构名称" ng-model="institutionName">
    <button class="btn-search font-white" ng-click="getInstitutionList(1)">查询</button>
    <button class="btn-yellow font-white fr" data-toggle="modal" ng-click="addPopup()">新增机构</button>
  </div>
  <!--列表展示-->
  <table class="list-table text-c table table-striped">
    <thead class="bg-green font-white">
      <tr>
        <th>机构名称</th>
        <th>执行利率</th>
        <th>机构联系人</th>
        <th>联系方式</th>
        <th>联系地址</th>
        <th>操作</th>
      </tr>
    </thead>
    <tbody>
      <tr ng-repeat="item in contentList">
        <td ng-bind="item.institution_name"></td>
        <td ng-bind="item.institution_base_rate"></td>
        <td ng-bind="item.institution_linkman"></td>
        <td ng-bind="item.institution_linkphone"></td>
        <td ng-bind="item.institution_addr"></td>
        <td class="font-yellow cursor">
          <span data-toggle="modal" ng-click="updatePopup(item)">修改</span>
          <span>|</span>
          <span ng-click="deleteInsitution(item.id)">删除</span>
        </td>
      </tr>
      <!--如果没数据，展示的内容-->
      <tr ng-show="!contentList || contentList.length == 0">
        <td colspan="6">暂无机构数据</td>
      </tr>
    </tbody>
  </table>
  <!--分页组件-->
  <app-page ng-if="totalPage > 1" current="currentPage" totals="totalPage" fn="changePage"></app-page>
  <!--弹出框-->
  <pop-up show="show" name="新增机构" list="list" tip="{{errorTip}}" on="addOrUpdateInstitution()"></pop-up>
</div>
